package com.song.user.dao;

import com.song.user.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

/**
 * @Author 宋伟宁
 * @Date 2024/1/5
 * @Version 1.0
 **/
public interface UserDao extends JpaRepository<User,Long> {
    int countByUsername(String username);

    User findUserByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
}
